package com.xbk.seckill.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 网关启动类
 *
 * @author xiexu
 * @date 2025/5/7 22:41
 */
@EnableDiscoveryClient
// 排除数据源自动配置，因为网关不需要数据库
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class SeckillGatewayStarter {

    public static void main(String[] args) {
        System.setProperty("user.home", "/Users/xiexu/xiaofu/seckill-2558-sean/gateway");
        System.setProperty("csp.sentinel.app.type", "1");
        SpringApplication.run(SeckillGatewayStarter.class, args);
    }

}
